{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nimport getArrowStyle from '../../style/placementArrow';\nvar genBaseStyle = function genBaseStyle(token) {\n  var _Object$assign;\n  var componentCls = token.componentCls,\n    popoverBg = token.popoverBg,\n    popoverColor = token.popoverColor,\n    width = token.width,\n    fontWeightStrong = token.fontWeightStrong,\n    popoverPadding = token.popoverPadding,\n    boxShadowSecondary = token.boxShadowSecondary,\n    colorTextHeading = token.colorTextHeading,\n    borderRadius = token.borderRadiusLG,\n    zIndexPopup = token.zIndexPopup,\n    marginXS = token.marginXS,\n    colorBgElevated = token.colorBgElevated;\n  return [_defineProperty({}, componentCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    position: 'absolute',\n    top: 0,\n    // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n    left: {\n      _skip_check_: true,\n      value: 0\n    },\n    zIndex: zIndexPopup,\n    fontWeight: 'normal',\n    whiteSpace: 'normal',\n    textAlign: 'start',\n    cursor: 'auto',\n    userSelect: 'text',\n    '--antd-arrow-background-color': colorBgElevated,\n    '&-rtl': {\n      direction: 'rtl'\n    },\n    '&-hidden': {\n      display: 'none'\n    }\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-content\"), {\n    position: 'relative'\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-inner\"), {\n    backgroundColor: popoverBg,\n    backgroundClip: 'padding-box',\n    borderRadius: borderRadius,\n    boxShadow: boxShadowSecondary,\n    padding: popoverPadding\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-title\"), {\n    minWidth: width,\n    marginBottom: marginXS,\n    color: colorTextHeading,\n    fontWeight: fontWeightStrong\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-inner-content\"), {\n    color: popoverColor\n  }), _Object$assign))),\n  // Arrow Style\n  getArrowStyle(token, {\n    colorBg: 'var(--antd-arrow-background-color)'\n  }), // Pure Render\n  _defineProperty({}, \"\".concat(componentCls, \"-pure\"), _defineProperty({\n    position: 'relative',\n    maxWidth: 'none'\n  }, \"\".concat(componentCls, \"-content\"), {\n    display: 'inline-block'\n  }))];\n};\nvar genColorStyle = function genColorStyle(token) {\n  var componentCls = token.componentCls;\n  return _defineProperty({}, componentCls, PresetColors.map(function (colorKey) {\n    var _$concat$concat;\n    var lightColor = token[\"\".concat(colorKey, \"-6\")];\n    return _defineProperty({}, \"&\".concat(componentCls, \"-\").concat(colorKey), (_$concat$concat = {\n      '--antd-arrow-background-color': lightColor\n    }, _defineProperty(_$concat$concat, \"\".concat(componentCls, \"-inner\"), {\n      backgroundColor: lightColor\n    }), _defineProperty(_$concat$concat, \"\".concat(componentCls, \"-arrow\"), {\n      background: 'transparent'\n    }), _$concat$concat));\n  }));\n};\nvar genWireframeStyle = function genWireframeStyle(token) {\n  var _componentCls;\n  var componentCls = token.componentCls,\n    lineWidth = token.lineWidth,\n    lineType = token.lineType,\n    colorSplit = token.colorSplit,\n    paddingSM = token.paddingSM,\n    controlHeight = token.controlHeight,\n    fontSize = token.fontSize,\n    lineHeight = token.lineHeight,\n    padding = token.padding;\n  var titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n  var popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n  var popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n  var popoverPaddingHorizontal = padding;\n  return _defineProperty({}, componentCls, (_componentCls = {}, _defineProperty(_componentCls, \"\".concat(componentCls, \"-inner\"), {\n    padding: 0\n  }), _defineProperty(_componentCls, \"\".concat(componentCls, \"-title\"), {\n    margin: 0,\n    padding: \"\".concat(popoverTitlePaddingBlockTop, \"px \").concat(popoverPaddingHorizontal, \"px \").concat(popoverTitlePaddingBlockBottom, \"px\"),\n    borderBottom: \"\".concat(lineWidth, \"px \").concat(lineType, \" \").concat(colorSplit)\n  }), _defineProperty(_componentCls, \"\".concat(componentCls, \"-inner-content\"), {\n    padding: \"\".concat(paddingSM, \"px \").concat(popoverPaddingHorizontal, \"px\")\n  }), _componentCls));\n};\nexport default genComponentStyleHook('Popover', function (token) {\n  var colorBgElevated = token.colorBgElevated,\n    colorText = token.colorText,\n    wireframe = token.wireframe;\n  var popoverToken = mergeToken(token, {\n    popoverBg: colorBgElevated,\n    popoverColor: colorText,\n    popoverPadding: 12 // Fixed Value\n  });\n\n  return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, function (_ref) {\n  var zIndexPopupBase = _ref.zIndexPopupBase;\n  return {\n    zIndexPopup: zIndexPopupBase + 30,\n    width: 177\n  };\n});","map":{"version":3,"names":["initZoomMotion","genComponentStyleHook","mergeToken","PresetColors","resetComponent","getArrowStyle","genBaseStyle","token","componentCls","popoverBg","popoverColor","width","fontWeightStrong","popoverPadding","boxShadowSecondary","colorTextHeading","borderRadius","borderRadiusLG","zIndexPopup","marginXS","colorBgElevated","Object","assign","position","top","left","_skip_check_","value","zIndex","fontWeight","whiteSpace","textAlign","cursor","userSelect","direction","display","backgroundColor","backgroundClip","boxShadow","padding","minWidth","marginBottom","color","colorBg","maxWidth","genColorStyle","map","colorKey","lightColor","background","genWireframeStyle","lineWidth","lineType","colorSplit","paddingSM","controlHeight","fontSize","lineHeight","titlePaddingBlockDist","Math","round","popoverTitlePaddingBlockTop","popoverTitlePaddingBlockBottom","popoverPaddingHorizontal","margin","borderBottom","colorText","wireframe","popoverToken","_ref","zIndexPopupBase"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/popover/style/index.js"],"sourcesContent":["import { initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nimport getArrowStyle from '../../style/placementArrow';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    popoverBg,\n    popoverColor,\n    width,\n    fontWeightStrong,\n    popoverPadding,\n    boxShadowSecondary,\n    colorTextHeading,\n    borderRadiusLG: borderRadius,\n    zIndexPopup,\n    marginXS,\n    colorBgElevated\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: 0,\n      // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n      left: {\n        _skip_check_: true,\n        value: 0\n      },\n      zIndex: zIndexPopup,\n      fontWeight: 'normal',\n      whiteSpace: 'normal',\n      textAlign: 'start',\n      cursor: 'auto',\n      userSelect: 'text',\n      '--antd-arrow-background-color': colorBgElevated,\n      '&-rtl': {\n        direction: 'rtl'\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        position: 'relative'\n      },\n      [`${componentCls}-inner`]: {\n        backgroundColor: popoverBg,\n        backgroundClip: 'padding-box',\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        padding: popoverPadding\n      },\n      [`${componentCls}-title`]: {\n        minWidth: width,\n        marginBottom: marginXS,\n        color: colorTextHeading,\n        fontWeight: fontWeightStrong\n      },\n      [`${componentCls}-inner-content`]: {\n        color: popoverColor\n      }\n    })\n  },\n  // Arrow Style\n  getArrowStyle(token, {\n    colorBg: 'var(--antd-arrow-background-color)'\n  }),\n  // Pure Render\n  {\n    [`${componentCls}-pure`]: {\n      position: 'relative',\n      maxWidth: 'none',\n      [`${componentCls}-content`]: {\n        display: 'inline-block'\n      }\n    }\n  }];\n};\nconst genColorStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: PresetColors.map(colorKey => {\n      const lightColor = token[`${colorKey}-6`];\n      return {\n        [`&${componentCls}-${colorKey}`]: {\n          '--antd-arrow-background-color': lightColor,\n          [`${componentCls}-inner`]: {\n            backgroundColor: lightColor\n          },\n          [`${componentCls}-arrow`]: {\n            background: 'transparent'\n          }\n        }\n      };\n    })\n  };\n};\nconst genWireframeStyle = token => {\n  const {\n    componentCls,\n    lineWidth,\n    lineType,\n    colorSplit,\n    paddingSM,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    padding\n  } = token;\n  const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n  const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n  const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n  const popoverPaddingHorizontal = padding;\n  return {\n    [componentCls]: {\n      [`${componentCls}-inner`]: {\n        padding: 0\n      },\n      [`${componentCls}-title`]: {\n        margin: 0,\n        padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      [`${componentCls}-inner-content`]: {\n        padding: `${paddingSM}px ${popoverPaddingHorizontal}px`\n      }\n    }\n  };\n};\nexport default genComponentStyleHook('Popover', token => {\n  const {\n    colorBgElevated,\n    colorText,\n    wireframe\n  } = token;\n  const popoverToken = mergeToken(token, {\n    popoverBg: colorBgElevated,\n    popoverColor: colorText,\n    popoverPadding: 12 // Fixed Value\n  });\n\n  return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, _ref => {\n  let {\n    zIndexPopupBase\n  } = _ref;\n  return {\n    zIndexPopup: zIndexPopupBase + 30,\n    width: 177\n  };\n});"],"mappings":";AAAA,SAASA,cAAc,QAAQ,oBAAoB;AACnD,SAASC,qBAAqB,EAAEC,UAAU,EAAEC,YAAY,QAAQ,sBAAsB;AACtF,SAASC,cAAc,QAAQ,aAAa;AAC5C,OAAOC,aAAa,MAAM,4BAA4B;AACtD,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAGC,KAAK,EAAI;EAAA;EAC5B,IACEC,YAAY,GAYVD,KAAK,CAZPC,YAAY;IAC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